$(info mali MTK evironment, building r21p0 DDK)

MTK_TOP = $(srctree)/drivers/misc/mediatek/

# build support for a ARM Mali Midgard GPU
CONFIG_MALI_MIDGARD := y

# use mtk platform
CONFIG_MALI_PLATFORM_THIRDPARTY := y
CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := $(CONFIG_MTK_PLATFORM)

$(info mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := $(CONFIG_MALI_PLATFORM_THIRDPARTY))
$(info mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := $(CONFIG_MALI_PLATFORM_THIRDPARTY_NAME))

CONFIG_MALI_DEBUG := y

ccflags-y += -I$(srctree)/include
ccflags-y += -I$(srctree)/drivers/staging/android
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/include
ccflags-y += -I$(srctree)/drivers/misc/mediatek/gpu/ged/include
ccflags-y += -I$(srctree)/drivers/misc/mediatek/gpu/gpu_bm

ccflags-y += -DCONFIG_MALI_MIDGARD_DVFS

ifeq ($(CONFIG_DEBUG_FS),y)
ccflags-y += -DCONFIG_DEBUG_FS
endif

ccflags-y += -DCONFIG_PROC_FS
ccflags-y += -DENABLE_MTK_MEMINFO
ccflags-$(CONFIG_MTK_GPU_COMMON_DVFS_SUPPORT) += -DENABLE_COMMON_DVFS

ifneq (, $(findstring $(CONFIG_MTK_PLATFORM), "mt6885"))
ccflags-y += -DMTK_GPU_BM_2
$(info *GPU defined GPU BM QoS 2.0)
endif
ifneq (, $(findstring $(CONFIG_MTK_PLATFORM), "mt6873"))
ccflags-y += -DMTK_GPU_BM_2
$(info *GPU defined GPU BM QoS 2.0)
endif
ifneq (, $(findstring $(CONFIG_MTK_PLATFORM), "mt6885"))
ccflags-y += -DGED_ENABLE_DVFS_LOADING_MODE
endif
ifneq (, $(findstring $(CONFIG_MTK_PLATFORM), "mt6873"))
ccflags-y += -DGED_ENABLE_DVFS_LOADING_MODE
endif


